using System;
using System.Collections.Generic;
using UMC.Data;
namespace UMC.WorkFlow.Entities
{
public partial class TaskObSerialize
{
readonly static Action<TaskObSerialize,object>[] _SetValues=new Action<TaskObSerialize,object>[]{(r,t)=>r.InstanceId=Reflection.ParseObject(t, r.InstanceId),(r,t)=>r.SerializeData=Reflection.ParseObject(t, r.SerializeData),(r,t)=>r.Status=Reflection.ParseObject(t, r.Status),(r,t)=>r.TaskId=Reflection.ParseObject(t, r.TaskId),(r,t)=>r.Text=Reflection.ParseObject(t, r.Text)};
readonly static string[] _Columns=new string[]{"InstanceId","SerializeData","Status","TaskId","Text"};
protected override void SetValue(string name, object obv){
var index = Utility.Search(_Columns,name, StringComparer.CurrentCultureIgnoreCase);
if (index > -1)_SetValues[index](this, obv);
}
protected override void GetValues(Action<String, object> action){
AppendValue(action,"InstanceId", this.InstanceId);
AppendValue(action,"SerializeData", this.SerializeData);
AppendValue(action,"Status", this.Status);
AppendValue(action,"TaskId", this.TaskId);
AppendValue(action,"Text", this.Text);
}

 protected override RecordColumn[] GetColumns(){
 var cols = new RecordColumn[5];
cols[0]= RecordColumn.Column("InstanceId",this.InstanceId);
cols[1]= RecordColumn.Column("SerializeData",this.SerializeData);
cols[2]= RecordColumn.Column("Status",this.Status);
cols[3]= RecordColumn.Column("TaskId",this.TaskId);
cols[4]= RecordColumn.Column("Text",this.Text);
return cols;
}

}
}

